import request from "@/utils/request";

// 查询班次管理列表
export function shiftListPost(query) {
  return request({
    url: "/attendance/shift/list",
    method: "get",
    params: query,
  });
}

// 查询班次管理详细
export function shiftGetPost(postId) {
  return request({
    url: "/attendance/shift/" + postId,
    method: "get",
  });
}

// 新增班次管理
export function shiftAddPost(data) {
  return request({
    url: "/attendance/shift/add",
    method: "post",
    data: data,
  });
}

// 修改班次管理
export function shiftUpdatePost(data) {
  return request({
    url: "/attendance/shift/edit",
    method: "put",
    data: data,
  });
}

// 删除班次管理
export function shiftDelPost(postId) {
  return request({
    url: "/attendance/shift/" + postId,
    method: "delete",
  });
}

//获取有管理考勤打卡资格的用户信息
export function getOrgSearchAgApi() {
  return request({
    url: "/org/search/ag",
    method: "get",
  });
}
